<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>发票寄送地址管理</title>
<link href="/css/user/buy/css.css" rel="stylesheet" type="text/css" />
<link href="/css/user/users/member_center.css" rel="stylesheet" type="text/css" />
<link type="text/css" rel="stylesheet" href="/css/user/users/bstuser_global.css" />
<link type="text/css" rel="stylesheet" href="/css/dialog.css" />
<link type="text/css" rel="stylesheet" href="/css/user/users/address_list.css" />
<script type="text/javascript" src="/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src = "/js/dialog.min.js"></script>
<script type="text/javascript" src = "/js/bstdialog.min.js"></script>
<script type="text/javascript" src="/js/member-center.js"></script>
<script type="text/javascript" src="/js/user/users/member_center/menu_line.js"></script>
<script type="text/javascript" src="/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/js/ajaxDataFormat.js"></script>
<script type="text/javascript" src="/js/place.js"></script>
<script src="/js/user/users/finance/invoice_manage/address_list.js"></script>

</head>
<body>
	<div class="Wrapper">
		<!--财务管理头部-->
		<jsp:include page="../../../common/member/memberHeader.jsp"></jsp:include>
		<!--财务管理头部-->
		<!--财务管理中间部分-->
		<div class="uc_bd mt20 mb20 ">
			<div class="uc_layer">
				<div class="account">
					<!--财务管理左侧-->
					<jsp:include page="../../../common/finance/finance_left.jsp"></jsp:include>
					<!--财务管理左侧-->
					<!--基本资料右侧-->
					<div class="member_r fr">
						<div class="uitopb uitopb_border">
							<div class="lm-t tabs">财务管理>发票地址管理</div>
							<div class="uc_content order">
								<!--发票管理开始-->
								
								<div class="address_list">
									<c:choose>
										<c:when test="${addressVos.size() > 0}">
											<div class="address_table">
												<table class="y-table y-table-odd">
										    		<tbody>
													    <tr>
													      <th>收件人姓名</th>
													      <th>电话号码</th>
													      <th>邮编</th>
													      <th class="y-align-center">地址</th>
													      <th class="y-align-right">操作</th>
													    </tr>
													    <c:forEach items="${addressVos}" var="address">
													    	<tr data-addressinfor='${address}'>
														      <td>${address.receiverName}</td>
														      <td>${address.userTel}</td>
														      <td>${address.postCode}</td>
														      <td class="y-align-center">${address.provinceCodeName} ${address.cityCodeName} ${address.areaCodeName} ${address.streetAddress}</td>
														      <td class="y-align-right y-green">
												      			  <span class=" f-default set_default" data-id="${address.addressId}">
																  	<a class="y-pale" href="javascript:void(0);">设为默认</a>
																  </span>
														          <c:if test="${address.isDefault == 1}">
														          	<span class=" f-default default_add"> <!-- default_add -->
																		<a class="y-pale" href="javascript:void(0);">默认地址</a>
																	</span>
														          </c:if>
														        <a class="f-set-edit" data-info="${address.addressId}">修改</a> |
														        <a class="f-add-del" data-addressid="${address.addressId}"> 删除</a>
														      </td>
													    	</tr>
													    </c:forEach>
												    </tbody>
										  </table>
										  <div class="f-title-1"><a class="showaddress_dialog" href="javascript:;" class="f-address-add"> + 使用新地址：</a><span class="y-pale">(最多保存5个地址)</span></div>
									</div>
										</c:when>
										<c:otherwise>
											<div class="no_address">
												您还没有寄送地址，<a class="btn showaddress_dialog" href="javascript:void(0);">立即设置</a>
											</div>
										</c:otherwise>
									</c:choose>	
								</div>
								
								<!--发票管理结束-->
							</div>
						</div>
					</div>
					<!--财务管理右侧-->
					<div class="cl"></div>
				</div>
			</div>
		</div>
		<!--财务管理中间部分-->
		<!---------------------------------footer------------------------------------>
		<jsp:include page="../../../common/footer.jsp" />
		<!---------------------------------footer结束------------------------------------>
	</div>
</body>
</html>
